package com.fengke.dao.admin;

import java.sql.SQLException;
import java.util.List;

import com.fengke.dao.model.AdminModel;
import com.fengke.dao.model.AdminRoleModel;
import com.fengke.dao.model.RoleModel;

public interface AdminManager {

	AdminModel researchAdminByLoginInfo(AdminModel adminModel) throws SQLException;

	Integer researchAdminListSize(AdminModel adminModel) throws SQLException;

	List<AdminModel> researchAdminModelList(AdminModel adminModel, int offset, int limit) throws SQLException;

	Integer checkAdminUsernameUnique(AdminModel adminModel) throws SQLException;

	Long createAdminModel(AdminModel adminModel) throws SQLException;

	List<RoleModel> researchRoleList(RoleModel roleModel) throws SQLException;

	void createAdminRoleModel(AdminRoleModel adminRoleModel) throws SQLException;

	List<AdminRoleModel> researchAdminRoleList(AdminRoleModel adminRoleModel) throws SQLException;

	AdminModel researchAdminById(AdminModel adminModel) throws SQLException;

	int deleteAdminRoleByAdminIds(List<String> list) throws SQLException;

	int updateAdminById(AdminModel adminModel) throws SQLException;

	int deleteAdminByIds(List<String> list) throws SQLException;

	int updateAdminLoginSuccessInfo(AdminModel adminModel) throws SQLException;

	int updateAdminLoginFailureInfo(AdminModel adminModel) throws SQLException;

}
